import 'package:flutter/cupertino.dart';

class GallerySelectAssetButton extends StatelessWidget {
  final GestureTapUpCallback onPressed;
  final bool multiSelectMode;

  GallerySelectAssetButton({
    required this.onPressed,
    required this.multiSelectMode,
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTapUp: onPressed,
      child: Container(
        width: 40,
        height: 40,
        decoration: BoxDecoration(
            color: multiSelectMode ? Color(0xff3F74EF) : Color(0xeeffffff),
            borderRadius: BorderRadius.circular(20)),
        child: Center(
            child: Image.asset(
          multiSelectMode
              ? "images/icon_multi_select_asset.png"
              : "images/icon_single_select_asset.png",
          width: 20,
          height: 20,
        )),
      ),
    );
  }
}
